package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_fx_daily")
public class FFxDaily {
    @Id
    private Long tid;

    /**
     * 外汇代码
     */
    @Column(name = "ts_code")
    private String tsCode;

    /**
     * 交易日期
     */
    @Column(name = "trade_date")
    private String tradeDate;

    /**
     * 买入开盘价
     */
    @Column(name = "bid_open")
    private Float bidOpen;

    /**
     * 买入收盘价
     */
    @Column(name = "bid_close")
    private Float bidClose;

    /**
     * 买入最高价
     */
    @Column(name = "bid_high")
    private Float bidHigh;

    /**
     * 买入最低价
     */
    @Column(name = "bid_low")
    private Float bidLow;

    /**
     * 卖出开盘价
     */
    @Column(name = "ask_open")
    private Float askOpen;

    /**
     * 卖出收盘价
     */
    @Column(name = "ask_close")
    private Float askClose;

    /**
     * 卖出最高价
     */
    @Column(name = "ask_high")
    private Float askHigh;

    /**
     * 卖出最低价
     */
    @Column(name = "ask_low")
    private Float askLow;

    /**
     * 报价笔数
     */
    @Column(name = "tick_qty")
    private Integer tickQty;

    /**
     * 交易商
     */
    private String exchange;

    public FFxDaily(Long tid, String tsCode, String tradeDate, Float bidOpen, Float bidClose, Float bidHigh, Float bidLow, Float askOpen, Float askClose, Float askHigh, Float askLow, Integer tickQty, String exchange) {
        this.tid = tid;
        this.tsCode = tsCode;
        this.tradeDate = tradeDate;
        this.bidOpen = bidOpen;
        this.bidClose = bidClose;
        this.bidHigh = bidHigh;
        this.bidLow = bidLow;
        this.askOpen = askOpen;
        this.askClose = askClose;
        this.askHigh = askHigh;
        this.askLow = askLow;
        this.tickQty = tickQty;
        this.exchange = exchange;
    }

    public FFxDaily() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取外汇代码
     *
     * @return ts_code - 外汇代码
     */
    public String getTsCode() {
        return tsCode;
    }

    /**
     * 设置外汇代码
     *
     * @param tsCode 外汇代码
     */
    public void setTsCode(String tsCode) {
        this.tsCode = tsCode;
    }

    /**
     * 获取交易日期
     *
     * @return trade_date - 交易日期
     */
    public String getTradeDate() {
        return tradeDate;
    }

    /**
     * 设置交易日期
     *
     * @param tradeDate 交易日期
     */
    public void setTradeDate(String tradeDate) {
        this.tradeDate = tradeDate;
    }

    /**
     * 获取买入开盘价
     *
     * @return bid_open - 买入开盘价
     */
    public Float getBidOpen() {
        return bidOpen;
    }

    /**
     * 设置买入开盘价
     *
     * @param bidOpen 买入开盘价
     */
    public void setBidOpen(Float bidOpen) {
        this.bidOpen = bidOpen;
    }

    /**
     * 获取买入收盘价
     *
     * @return bid_close - 买入收盘价
     */
    public Float getBidClose() {
        return bidClose;
    }

    /**
     * 设置买入收盘价
     *
     * @param bidClose 买入收盘价
     */
    public void setBidClose(Float bidClose) {
        this.bidClose = bidClose;
    }

    /**
     * 获取买入最高价
     *
     * @return bid_high - 买入最高价
     */
    public Float getBidHigh() {
        return bidHigh;
    }

    /**
     * 设置买入最高价
     *
     * @param bidHigh 买入最高价
     */
    public void setBidHigh(Float bidHigh) {
        this.bidHigh = bidHigh;
    }

    /**
     * 获取买入最低价
     *
     * @return bid_low - 买入最低价
     */
    public Float getBidLow() {
        return bidLow;
    }

    /**
     * 设置买入最低价
     *
     * @param bidLow 买入最低价
     */
    public void setBidLow(Float bidLow) {
        this.bidLow = bidLow;
    }

    /**
     * 获取卖出开盘价
     *
     * @return ask_open - 卖出开盘价
     */
    public Float getAskOpen() {
        return askOpen;
    }

    /**
     * 设置卖出开盘价
     *
     * @param askOpen 卖出开盘价
     */
    public void setAskOpen(Float askOpen) {
        this.askOpen = askOpen;
    }

    /**
     * 获取卖出收盘价
     *
     * @return ask_close - 卖出收盘价
     */
    public Float getAskClose() {
        return askClose;
    }

    /**
     * 设置卖出收盘价
     *
     * @param askClose 卖出收盘价
     */
    public void setAskClose(Float askClose) {
        this.askClose = askClose;
    }

    /**
     * 获取卖出最高价
     *
     * @return ask_high - 卖出最高价
     */
    public Float getAskHigh() {
        return askHigh;
    }

    /**
     * 设置卖出最高价
     *
     * @param askHigh 卖出最高价
     */
    public void setAskHigh(Float askHigh) {
        this.askHigh = askHigh;
    }

    /**
     * 获取卖出最低价
     *
     * @return ask_low - 卖出最低价
     */
    public Float getAskLow() {
        return askLow;
    }

    /**
     * 设置卖出最低价
     *
     * @param askLow 卖出最低价
     */
    public void setAskLow(Float askLow) {
        this.askLow = askLow;
    }

    /**
     * 获取报价笔数
     *
     * @return tick_qty - 报价笔数
     */
    public Integer getTickQty() {
        return tickQty;
    }

    /**
     * 设置报价笔数
     *
     * @param tickQty 报价笔数
     */
    public void setTickQty(Integer tickQty) {
        this.tickQty = tickQty;
    }

    /**
     * 获取交易商
     *
     * @return exchange - 交易商
     */
    public String getExchange() {
        return exchange;
    }

    /**
     * 设置交易商
     *
     * @param exchange 交易商
     */
    public void setExchange(String exchange) {
        this.exchange = exchange;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", tsCode=").append(tsCode);
        sb.append(", tradeDate=").append(tradeDate);
        sb.append(", bidOpen=").append(bidOpen);
        sb.append(", bidClose=").append(bidClose);
        sb.append(", bidHigh=").append(bidHigh);
        sb.append(", bidLow=").append(bidLow);
        sb.append(", askOpen=").append(askOpen);
        sb.append(", askClose=").append(askClose);
        sb.append(", askHigh=").append(askHigh);
        sb.append(", askLow=").append(askLow);
        sb.append(", tickQty=").append(tickQty);
        sb.append(", exchange=").append(exchange);
        sb.append("]");
        return sb.toString();
    }
}